package ciyuan.Entity;

import ciyuan.Entity.ExplosionTrap.ExplosionTrapEntity;
import ciyuan.Entity.MagicTexture.MagicTextureEntity;
import net.minecraft.entity.ai.attributes.GlobalEntityTypeAttributes;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

/**
 * @author 150149
 */
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class AttributesRegisterManager {

    @SubscribeEvent
    public static void onCommonSetup(FMLCommonSetupEvent event) {
        event.enqueueWork(() -> {
            GlobalEntityTypeAttributes.put(EntityRegisterManager.magictexture.get(), MagicTextureEntity.createAttributes().build());
        });
        event.enqueueWork(() -> {
            GlobalEntityTypeAttributes.put(EntityRegisterManager.explosiontrap.get(), ExplosionTrapEntity.createAttributes().build());
        });
    }
}
